package com.jl.cloud.terminal.task;

import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

@Component
public class SampleXxlJob {

    @XxlJob("demoJobHandler")
    public void demoJobHandler() throws Exception {
        //获取参数
        String jobParam = XxlJobHelper.getJobParam();
        System.out.println("======XXL-JOB执行成功====="+jobParam);
    }



}
